/*
 * Created by Jesse Phillips
 * Created on Feb 25, 2006
 */

/**
 * Simple Node class, holds an item (double) and a pointer
 * to the next node. 
 */
public class Node {
	public Node next = null;
	private double value;

	/**
	 * Create a new node that points to the next node.
	 * 
	 * @param item item being held
	 * @param next the next node in the list
	 */
	public Node(double item, Node next) {
		value = item;
		this.next = next;
	}

	/**
	 * grabs the value from the node.
	 * 
	 * @return The double being held
	 */
	double getValue() {
		return value;
	}
	
}
